import {natural} from "mockjs";

const Random = require('mockjs').Random

const trainBaseData = {
    "success": true,
    "message": "操作成功！",
    "code": 200,
    "result": [{
        "label":"1号线",
        "value":"1haoxian",
        "children": [
            {
                "label":"1001",
                "value":"1001",
                "scores":[
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100)
                ],
            },
            {
                "label":"1002",
                "value":"1002",
                "scores":[
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100),
                    Random.natural(50, 100)
                ]
            },
        ],
    },
        {
            "label":"2号线",
            "value":"2haoxian",
            "children": [
                {
                    "label":"2001",
                    "value":"2001",
                    "scores":[
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100)
                    ]
                },
                {
                    "label":"2002",
                    "value":"2002",
                    "scores":[
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100),
                        Random.natural(50, 100)
                    ]
                },
            ],
        },
    ]
}

export default {
    'get|/faultInfo/trainBaseData': trainBaseData,
}


